<?php
/**
 * Created by JetBrains PhpStorm.
 * User: A.Delpiero
 * Date: 17/10/2554
 * Time: 1:01 น.
 * To change this template use File | Settings | File Templates.
 */
 
class date_today {
    protected $year;
    protected $month;
    protected $mkdate;
    protected $full_month;
    protected $weekday;
    protected $last_days;
    protected $day;
    public function date_time (){
        $this->year = date ('Y');
        $this->month = date ('m');
        $this->mkdate = mktime(0,0,0,$this->month,1,$this->year);
        $this->full_month = date ('F',$this->mkdate);
        $this->weekday = date ('w',$this->mkdate);
        $this->last_days = date ('t',$this->mkdate);
        $this->day = 1;

        //
        $start =1;
        while ($start <= $this->weekday){
            $start++;
        }
        $this->weekday++;
        while ($this->day <= $this->last_days);
            if(date("d") == $this->day);

    }
}
